home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Commands / Protocols / Closing.h < prev    next >
Text File  |  2000-06-23  |  343b  |  23 lines

  1. // Closing.h
  2.  
  3. #ifndef Closing_h
  4. #define Closing_h
  5.  
  6. #ifndef SavingOption_h
  7. #include "SavingOption.h"
  8. #endif
  9.  
  10. class Closing
  11.   {
  12.     protected:
  13.         ~Closing()                {}
  14.  
  15.     public:
  16.         void CloseAskingToSave()        { Close( SavingOption::ask ); }
  17.         
  18.         virtual bool CanClose() const;
  19.         virtual void Close( SavingOption save = SavingOption::ask ) = 0;
  20.   };
  21.  
  22. #endif
  23.